package com.spring.demo.pojo2;

/**
 * @version 1.0.0
 * @Date: 2022/5/25 16:09
 * @Author ZhuYouBin
 * @Description
 */
public class UserService2 {

    private Dao dao;

    public void test() {
        System.out.println("开始执行UserService2类的test()方法......");
        // 这里调用 dao 类中的 create() 方法
        dao.create();
        System.out.println("执行结束");
    }
    public void setDao(Dao dao) {
        this.dao = dao;
    }

    public Dao getDao() {
        return dao;
    }
}
